package com.zxy.demo.guava.reflect;

import com.google.common.reflect.Reflection;

/**
 * Main.
 * 
 * Created by zxybird on 2017/11/27.
 */
public class Main {

  public static void main(String[] args) {
    Foo foo = new FooImpl();

    BaseInvocationHandler<Foo> baseInvocationHandler = new BaseInvocationHandler<>(foo);

    Foo foo2 = Reflection.newProxy(Foo.class, baseInvocationHandler);

    System.out.println(foo2.say());

  }

}
